package com.car.carmgr.mapper;

import com.car.carmgr.bean.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NewsMapper {

    int insertNews(News news);

    int deleteNewsById(Integer id);

    int updateNews(News news);

    News findNewsById(Integer id);

    /**
     * 查询日志
     */
    List<News> findNewsByWhere(@Param("title") String title, @Param("content") String content,@Param("publisherName") String publisherName);

    Integer getCountByWhere(@Param("title") String title, @Param("content") String content,@Param("publisherName") String publisherName);

}
